package model;

import java.io.Serializable;
import javax.persistence.*;
import java.sql.Timestamp;


/**
 * The persistent class for the apply database table.
 * 
 */
@Entity
public class Apply implements Serializable {
	private static final long serialVersionUID = 1L;

	@Id
	private int applyid;

	@Column(name="apply_date")
	private Timestamp applyDate;

	@Column(name="apply_status")
	private String applyStatus;

	private String reason;

	//bi-directional many-to-one association to Myuser
    @ManyToOne
	@JoinColumn(name="user")
	private Myuser myuser;

	//bi-directional many-to-one association to Target
    @ManyToOne
	@JoinColumn(name="target")
	private Target targetBean;

    public Apply() {
    }

	public int getApplyid() {
		return this.applyid;
	}

	public void setApplyid(int applyid) {
		this.applyid = applyid;
	}

	public Timestamp getApplyDate() {
		return this.applyDate;
	}

	public void setApplyDate(Timestamp applyDate) {
		this.applyDate = applyDate;
	}

	public String getApplyStatus() {
		return this.applyStatus;
	}

	public void setApplyStatus(String applyStatus) {
		this.applyStatus = applyStatus;
	}

	public String getReason() {
		return this.reason;
	}

	public void setReason(String reason) {
		this.reason = reason;
	}

	public Myuser getMyuser() {
		return this.myuser;
	}

	public void setMyuser(Myuser myuser) {
		this.myuser = myuser;
	}
	
	public Target getTargetBean() {
		return this.targetBean;
	}

	public void setTargetBean(Target targetBean) {
		this.targetBean = targetBean;
	}
	
}